% check if list1 in list2

function flag = is_contained(list1,list2)
list1 = list1(:); list2=list2(:);
flag = (length(unique(list2)) == length(unique([list1;list2])));